package ru.jexp.rcp.supply.beans.zs.wizard;

import org.eclipse.jface.viewers.CheckboxTableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;

public class WizardPageChooseDvs extends NewWizardPage implements WizardPageChooseDvsPresenter.IView
{

	private CheckboxTableViewer viewer;

	public WizardPageChooseDvs(String pageName)
	{
		super(pageName);
		setTitle(pageName);
	}

	@Override
	public void createWizardPage(Composite parent)
	{
		Composite composite = new Composite(parent, SWT.NONE);
		composite.setLayout(new FillLayout());

		viewer = CheckboxTableViewer.newCheckList(composite, SWT.SINGLE | SWT.BORDER);

		setControl(composite);

		setPageComplete(true);
	}

	public CheckboxTableViewer getViewer()
	{
		return viewer;
	}
}
